package com.pth.model;

public class KaoshengExcel {

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((exam == null) ? 0 : exam.hashCode());
		result = prime * result
				+ ((excelname == null) ? 0 : excelname.hashCode());
		result = prime * result
				+ ((excelpath == null) ? 0 : excelpath.hashCode());
		result = prime * result + id;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		KaoshengExcel other = (KaoshengExcel) obj;
		if (exam == null) {
			if (other.exam != null)
				return false;
		} else if (!exam.equals(other.exam))
			return false;
		if (excelname == null) {
			if (other.excelname != null)
				return false;
		} else if (!excelname.equals(other.excelname))
			return false;
		if (excelpath == null) {
			if (other.excelpath != null)
				return false;
		} else if (!excelpath.equals(other.excelpath))
			return false;
		if (id != other.id)
			return false;
		return true;
	}

	public KaoshengExcel() {
		super();
	}

	private int id;
	
	private Exam exam;
	
	private String excelname;
	
	private String excelpath;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Exam getExam() {
		return exam;
	}

	public void setExam(Exam exam) {
		this.exam = exam;
	}

	public String getExcelname() {
		return excelname;
	}

	public void setExcelname(String excelname) {
		this.excelname = excelname;
	}

	public String getExcelpath() {
		return excelpath;
	}

	public void setExcelpath(String excelpath) {
		this.excelpath = excelpath;
	}
	
	
}
